/*******************************************************
 *
 *            Module: init_serial.c
 *       Copyright(c)2012-2015 __njxzc.
 *            All Rights Reserved.
 *
 *History:
 *    Author  :  royxu
 *    Time    :  2012-10-08   
 *    Version :  1.0  
 *    Desc    :  Build this file
 *
********************************************************/

#include <reg52.h>
#include <stdio.h>


/*
InitSerial
*/
void InitSerial()
{
	SCON = 0x52;
	TMOD = 0x20;
	TH1 = 0xf3;
	TL1 = 0xf3;
	EA = 1;
	ES = 1;
	TR1 =1;
}






